package org.spring.batch.ch03;

import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.scope.context.ChunkContext;
import org.springframework.batch.core.step.tasklet.Tasklet;
import org.springframework.batch.repeat.RepeatStatus;

public class AJobTasklet implements Tasklet{
	
	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Override
	public RepeatStatus execute(StepContribution contribution,
			ChunkContext chunkContext) throws Exception {
		logger.info("=====>>AJobTasklet is running, time:" + new Date());
		// float a = 1/0;
		return RepeatStatus.FINISHED;
	}

}
